package com.guigu.erp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.erp.dto.StorageGatherDetailsDto;
import com.guigu.erp.pojo.DesignModuleDetails;
import com.guigu.erp.pojo.StorageGatherDetails;
import com.guigu.erp.utils.PageUtils;

import java.util.List;

/**
 * @author Lenovo
 */
public interface StorageGatherDetailsService extends IService<StorageGatherDetails> {
    /**
     * 按条件分页查询入库明细表
     * @param
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageUtils<StorageGatherDetails> gatherDetailsPage(Integer id, int pageNo, int pageSize);

    /**
     * 通过id查询 入库表和入库明细表 查到库存单元的编号
     * @param productId
     * @return
     */
    StorageGatherDetailsDto listByParentId(String productId);

    /**
     * 入库明细回显复核
     */
    List<StorageGatherDetails> detailsById(int id);

    /**
     * 提交
     *
     */
    void updateDto(StorageGatherDetailsDto storageGatherDetailsDto);
}
